import requests

from common.get_token import getLP

def getID():
    token=getLP()
    # print(token)
    re=requests.post(url="http://ihrm2-test.itheima.net/api/sys/user",
                     headers={"Content-Type":"application/json",
                              "Authorization":token},
                     json={"username":"zhane",
                           "mobile":"13898830945",
                           "workNumber":"15543"})
    ID=re.json().get("data").get("id")
    return ID


if __name__ == '__main__':
   print(getID())